package com.cg.mapper;

import com.cg.entity.Category;
import com.cg.entity.StatisticsCircle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface CategoryMapper {

    List<StatisticsCircle> circle(String createdId);

    int deleteByPrimaryKey(Long id);

    int insert(Category category);

    int insertSelective(Category record);

    List<Category> selectByPrimaryKey(String username);
//修改类别
    int update(Category category);

    int updateByPrimaryKey(Category record);

    int deleteOne(int categoryId);
    List<Category> selectList(String createdBy);
    Category ifRepeat(@Param("createdBy") String createdBy, @Param("categoryName") String name);
}
